package chuishop.yiqimaicai.mapper;

import chuishop.yiqimaicai.pojo.Shopcar;

import java.util.List;

public interface ShopcarMapper {

    /**
     * 查询用户购物车
     * @param uid
     * @return
     */
    List<Shopcar> selectShopcarByUid(Integer uid);

    /**
     * 删除购物车
     * @param ids
     * @return
     */
    int delShopcar(String[] ids);

    /**
     * 添加购物车
     * @param shopcar
     * @return
     */
    int addShopcar(Shopcar shopcar);

    /**
     * 更新购物车
     * @param shopcar
     * @return
     */
    int updateShopcar(Shopcar shopcar);

}
